{% extends 'homepage.html' %}
{% block content %}


<h3> Browse </h3>

<ul>
<li>
By degree:
{% for r in info.degree_list: %}
<a href="?degree={{r}}">{{r}}</a>&nbsp;&nbsp;
{% endfor %}
<li>
By discriminant range: 
{% for r in info.discriminant_list: %}
<a href="?discriminant={{r}}">{{r}}</a>&nbsp;&nbsp;
{% endfor %}
<li>
By signature: 
{% for t in info.signature_list: %}
<a href="?signature={{t}}">{{t}}</a>&nbsp;&nbsp;
{% endfor %}
<li>
By class number: 
{% for r in info.class_number_list: %}
<a href="?class_number={{r}}">{{r}}</a>&nbsp;&nbsp;
{% endfor %}
</ul>

<h3>Go to a specific field</h3>

<form>
Label:&nbsp;&nbsp;
<input type='text' name='natural' size=10> 
<button type='submit' name='search' value='Go'>Go</button>
<td><span class="formexample"> either a field label, e.g. 2.2.5.1 for
    \(\mathbb{Q}(\sqrt{5})\), or a nickname, e.g. Q or Qsqrt5 or Qzeta7</span></td>
</form>

<h3> Search for fields </h3>
<form>
<p>
Enter values into one or more boxes to restrict the search.&nbsp;&nbsp;
<button type='submit' value='Search'>Search</button>
</p>
<table border=0 cellpadding=5>
<tr>
<td align=left>Degree <td><input type='text' name='degree' size=10> 
<span class="formexample"> e.g. 3</span></td>
<td>
<td align=left>Signature <td><input type='text' name='signature' size=10> 
<span class="formexample"> e.g. [1,1]</span></td>
</tr>
<tr>
<td align=left>Discriminant 
<td colspan=4><input type='text' name='discriminant' size=10 size=10> 
<span class="formexample"> e.g. -3, or a range such as 1000-2000 or -1000--1</span></td>
</tr>
<tr>
<td align=left>Class number <td><input type='text' name='class_number' size=10>
<span class="formexample"> e.g. 5</span></td>
<td>
<td align=left>Class group structure<td><input type='text' name='class_group' size=10>
<span class="formexample"> e.g. [], [3], or [2,2]</span></td>
<font color=gray>(e.g. )</font>
</tr>
<tr>
<td align=left>Galois group <td><input type='text' name='galois_group' size=10>
<span class="formexample"> e.g. C5</span></td>
<td>
<td align=left>Unramified primes <td><input type='text'
                                            name='ur_primes' size=10>
<span class="formexample"> e.g. 2,3</span></td>
</tr>
<tr>
<td align=left colspan=3>Maximum number of fields to display <input type='text'
                                                   name='count'
                                                   value=10 size=10>
</td>
</tr>
</table>
</form>

{% endblock %}
